let BOTTLES_OF_BEER=require('../main/main.js')
describe("99_BOTTLES_OF_BEER",function(){

    it("first",function(){
        let expected=
        '3 bottles of beer on the wall, 3 bottles of beer.\n'+
        'Take one down and pass it around, 2 bottles of beer on the wall.\n'+
        '2 bottles of beer on the wall, 2 bottles of beer.\n'+
        'Take one down and pass it around, 1 bottles of beer on the wall.\n'+
        '1 bottle of beer on the wall, 1 bottle of beer.\n'+
        'Take one down and pass it around, no more bottles of beer on the wall.\n'+
        'No more bottles of beer on the wall, no more bottles of beer.\n'+
        'Go to the store and buy some more, 3 bottles of beer on the wall.\n';
        let result=BOTTLES_OF_BEER(3);
        expect(result).toEqual(expected)
    });

    it("second",function(){
        let expected=
        '1 bottle of beer on the wall, 1 bottle of beer.\n'+
        'Take one down and pass it around, no more bottles of beer on the wall.\n'+
        'No more bottles of beer on the wall, no more bottles of beer.\n'+
        'Go to the store and buy some more, 1 bottles of beer on the wall.\n';
        let result=BOTTLES_OF_BEER(1);
        expect(result).toEqual(expected)
    });

    it("thired",function(){
        let expected=
        'No more bottles of beer on the wall, no more bottles of beer.\n'+
        'Go to the store and buy some more, 0 bottles of beer on the wall.\n';
        let result=BOTTLES_OF_BEER(0);
        expect(result).toEqual(expected)
    });
});